import { computed, inject } from "vue";
export default function (modelValue) {
  const sgbList = inject("sgbList");
  const currentData = computed(() => {
    return sgbList.value.find((item) => item._id === modelValue.value?.payload?.value);
  });

  return currentData;
}
